x11: Initialize GdkWindowAttr struct memory
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 7 Jan 2016 17:55:04 +0000 (18:55 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 8 Jan 2016 20:58:33 +0000 (21:58 +0100)
Valgrind complains about jumps based on uninitialized values
otherwise.

gdk/x11/gdkdnd-x11.c

index 86ecb8208cc82958592fac9ab0a4a15a57881961..69f1b94c91be2b4ebec301395dc395162a84c42f 100644 (file)
@@ -1939,7 +1939,7 @@ gdk_drag_do_leave (GdkX11DragContext *context_x11,
 static GdkWindow *
 create_drag_window (GdkScreen *screen)
 {
-  GdkWindowAttr attrs;
+  GdkWindowAttr attrs = { 0 };
   guint mask;
 
   attrs.x = attrs.y = 0;